## -*- coding: utf-8 -*-

<%def name="about(blog)">
<dt class="partstitle">${translate('About this blog')}</dt>
<dd class="partsbody">
${blog.description}
</dd>
</%def>

<%def name="recent_entries(blog)">
<dt class="partstitle">${translate('Recent Entries')}</dt>
<dd class="partsbody">
	<ul class="nomark">
		% for e in blog.get_entries(end=blog.recent_item_count):
		<li><a href="${e.get_path()}">${e.title}</a>
		<time datetime="${helpers.format_date(e.created_at, 'html5')}" pubdate>
		${_('Posted at :')}
		${helpers.format_date(e.created_at, 'date_short')}
		</time>
		</li>
		% endfor
	</ul>
</dd>
</%def>

<%def name="recent_comments(blog)">
<% com=blog.get_comments(end=blog.recent_item_count); %>
%if com:
<dt class="partstitle">${translate('Recent Comments')}</dt>
<dd class="partsbody">
	<ul class="nomark">
		% for c in blog.get_comments(end=blog.recent_item_count):
		<li><a href="${c.get_parent().get_path()}">${c.title}</a>
		<time datetime="${helpers.format_date(c.created_at, 'html5')}" pubdate>
		${_('Posted at :')}
		${helpers.format_date(c.created_at, 'date_short')}
		</time>
		</li>
		% endfor
	</ul>
</dd>
% endif:
</%def>

<%def name="twitterwidget(blog)">
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 8,
  interval: 6000,
  width: 'auto',
  height: 300,
  theme: {
    shell: {
      background: '#333333',
      color: '#ffffff'
    },
    tweets: {
      background: '#000000',
      color: '#ffffff',
      links: '#4aed05'
    }
  },
  features: {
    scrollbar: false,
    loop: true,
    live: true,
    hashtags: true,
    timestamp: true,
    avatars: false,
    behavior: 'default'
  }
}).render().setUser('ats').start();
</script>
</%def>

<%def name="googleconnection(blog)">
<!-- Include the Google Friend Connect javascript library. -->
<script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>
<!-- Define the div tag where the gadget will be inserted. -->
<div id="div-2703861850097963460" style="width:200px;border:1px solid #cccccc;"></div>
<!-- Render the gadget into a div. -->
<script type="text/javascript">
var skin = {};
skin['FONT_FAMILY'] = 'tahoma,sans-serif';
skin['BORDER_COLOR'] = '#cccccc';
skin['ENDCAP_BG_COLOR'] = '#e0ecff';
skin['ENDCAP_TEXT_COLOR'] = '#333333';
skin['ENDCAP_LINK_COLOR'] = '#0000cc';
skin['ALTERNATE_BG_COLOR'] = '#ffffff';
skin['CONTENT_BG_COLOR'] = '#ffffff';
skin['CONTENT_LINK_COLOR'] = '#0000cc';
skin['CONTENT_TEXT_COLOR'] = '#333333';
skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
skin['CONTENT_HEADLINE_COLOR'] = '#333333';
skin['NUMBER_ROWS'] = '6';
google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html */);
google.friendconnect.container.renderMembersGadget(
 { id: 'div-2703861850097963460',
   site: '09083359093990909016' },
  skin);
</script>
</%def>

<%def name="hatenabookmark(blog)">
<script language="javascript" type="text/javascript" src="http://b.hatena.ne.jp/js/widget.js" charset="utf-8"></script>
<script language="javascript" type="text/javascript">
Hatena.BookmarkWidget.url   = "http://coreblog.org/";
Hatena.BookmarkWidget.title = "Popular Entries";
Hatena.BookmarkWidget.sort  = "";
Hatena.BookmarkWidget.width = 196;
Hatena.BookmarkWidget.num   = 5;
Hatena.BookmarkWidget.theme = "default";
Hatena.BookmarkWidget.load();
</script>

<a href="http://ahaquiz.appspot.com/reflexology/" style="color: #eee">足ツボクイズ</a>
</%def>

<%def name="amazon(blog)">
<script type="text/javascript"><!--
amazon_ad_tag = "trivialtechno-22"; amazon_ad_width = "160"; amazon_ad_height = "600"; amazon_ad_categories = "cdle";//--></script>
<script type="text/javascript" src="http://www.assoc-amazon.jp/s/ads.js"></script>
</%def>


